dataSource {
    pooled = true
    //driverClassName = "com.mysql.jdbc.Driver"
	driverClassName = "org.h2.Driver"
    username = "rest"
    password = "rest"
    //dialect = org.hibernate.dialect.MySQLInnoDBDialect
	dialect = org.hibernate.dialect.H2Dialect
}

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = true
    cache.provider_class='net.sf.ehcache.hibernate.EhCacheProvider'
}

// environment specific settings
environments {
    development {
        dataSource {
            dbCreate = "update" // one of 'create', 'create-drop','update'
            //url = "jdbc:mysql://localhost:3306/ProyectoKarma"
			//url = "jdbc:h2:tcp://localhost/~/databases/ProyectoKarma"
			url = "jdbc:h2:/home/jj/www/databases/ProyectoKarma"
        }
    }
    test {
        dataSource {
            dbCreate = "update"
            //url = "jdbc:mysql://localhost:3306/ProyectoKarma"
			url = "jdbc:h2:/home/jj/www/databases/ProyectoKarma"
        }
    }
    production {
        dataSource {
            dbCreate = "update"
            //url = "jdbc:mysql://localhost:3306/ProyectoKarma"
			url = "jdbc:h2:/home/jj/www/databases/ProyectoKarma"
        }
    }
}
